import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIcons from '@element-plus/icons-vue'
import { App } from 'vue'

export default {
  install (app:App) {
    // el-icon单独处理
    for (const name in ElIcons) {
      app.component(name, (ElIcons as any)[name])
    }
    app.use(ElementPlus, { size: 'default' })
  }
}
